/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jse;

import java.util.Arrays;
import java.util.List;

/**
 *
 * @author WangShuai
 */
public class ArraysTest {
    public static void main(String[] args) {
        //1.Arrays
        //List list = Arrays.asList(null); //java.lang.NullPointerException
        //System.out.println(list);

        //2.
        String[] strArray = new String[]{"a","b"};
        System.out.println(strArray.toString());   //[Ljava.lang.String;@de6ced
        System.out.println(Arrays.toString(strArray));  //[a, b]
    }
}
